#ifdef USE_90MS_RKSJ_H

#ifdef INCLUDE_CMAP_DATA

static const int g_cmap_90ms_rksj_h_table[44] = {
 7479,  7481,  7491,  7495,  7503,  7499,  7507,  7523, 
 7515,  7531,  7539,  7480,  7482,  7494,  7498,  7506, 
 7502,  7514,  7530,  7522,  7538,  7554,  7511,  7526, 
 7519,  7534,  7542,  7508,  7527,  7516,  7535,  7545, 
 8038,  7588,  8040,  7590,  8042,  762,  761,  769, 
 7618,  7610,  8055,  768 };

static const pdf_range g_cmap_90ms_rksj_h_ranges[131] = {
 {32, 125, 1, 231},
 {126, 126, 0, 631},
 {160, 223, 1, 326},
 {33088, 33150, 1, 633},
 {33152, 33196, 1, 696},
 {33208, 33215, 1, 741},
 {33224, 33230, 1, 749},
 {33242, 33256, 1, 756},
 {33264, 33271, 1, 771},
 {33276, 33276, 0, 779},
 {33359, 33368, 1, 780},
 {33376, 33401, 1, 790},
 {33409, 33434, 1, 816},
 {33439, 33521, 1, 842},
 {33600, 33662, 1, 925},
 {33664, 33686, 1, 988},
 {33695, 33718, 1, 1011},
 {33727, 33750, 1, 1035},
 {33856, 33888, 1, 1059},
 {33904, 33918, 1, 1092},
 {33920, 33937, 1, 1107},
 {33951, 33982, 2, 0},
 {34624, 34653, 1, 7555},
 {34655, 34656, 1, 7585},
 {34657, 34661, 2, 32},
 {34662, 34663, 1, 7592},
 {34664, 34664, 0, 8044},
 {34665, 34666, 1, 7595},
 {34667, 34667, 0, 8043},
 {34668, 34669, 1, 7598},
 {34670, 34670, 0, 8047},
 {34671, 34677, 1, 7601},
 {34686, 34686, 0, 8323},
 {34688, 34691, 1, 7608},
 {34692, 34692, 0, 8055},
 {34693, 34703, 1, 7613},
 {34704, 34706, 2, 37},
 {34707, 34713, 1, 7624},
 {34714, 34714, 0, 768},
 {34715, 34716, 1, 7631},
 {34975, 35068, 1, 1125},
 {35136, 35198, 1, 1219},
 {35200, 35324, 1, 1282},
 {35392, 35454, 1, 1407},
 {35456, 35580, 1, 1470},
 {35648, 35710, 1, 1595},
 {35712, 35836, 1, 1658},
 {35904, 35966, 1, 1783},
 {35968, 36092, 1, 1846},
 {36160, 36222, 1, 1971},
 {36224, 36348, 1, 2034},
 {36416, 36478, 1, 2159},
 {36480, 36604, 1, 2222},
 {36672, 36734, 1, 2347},
 {36736, 36860, 1, 2410},
 {36928, 36990, 1, 2535},
 {36992, 37116, 1, 2598},
 {37184, 37246, 1, 2723},
 {37248, 37372, 1, 2786},
 {37440, 37502, 1, 2911},
 {37504, 37628, 1, 2974},
 {37696, 37758, 1, 3099},
 {37760, 37884, 1, 3162},
 {37952, 38014, 1, 3287},
 {38016, 38140, 1, 3350},
 {38208, 38270, 1, 3475},
 {38272, 38396, 1, 3538},
 {38464, 38526, 1, 3663},
 {38528, 38652, 1, 3726},
 {38720, 38782, 1, 3851},
 {38784, 38908, 1, 3914},
 {38976, 39026, 1, 4039},
 {39071, 39164, 1, 4090},
 {39232, 39294, 1, 4184},
 {39296, 39420, 1, 4247},
 {39488, 39550, 1, 4372},
 {39552, 39676, 1, 4435},
 {39744, 39806, 1, 4560},
 {39808, 39932, 1, 4623},
 {40000, 40062, 1, 4748},
 {40064, 40188, 1, 4811},
 {40256, 40318, 1, 4936},
 {40320, 40444, 1, 4999},
 {40512, 40574, 1, 5124},
 {40576, 40700, 1, 5187},
 {40768, 40830, 1, 5312},
 {40832, 40956, 1, 5375},
 {57408, 57470, 1, 5500},
 {57472, 57596, 1, 5563},
 {57664, 57726, 1, 5688},
 {57728, 57852, 1, 5751},
 {57920, 57982, 1, 5876},
 {57984, 58108, 1, 5939},
 {58176, 58238, 1, 6064},
 {58240, 58364, 1, 6127},
 {58432, 58494, 1, 6252},
 {58496, 58620, 1, 6315},
 {58688, 58750, 1, 6440},
 {58752, 58876, 1, 6503},
 {58944, 59006, 1, 6628},
 {59008, 59132, 1, 6691},
 {59200, 59262, 1, 6816},
 {59264, 59388, 1, 6879},
 {59456, 59518, 1, 7004},
 {59520, 59644, 1, 7067},
 {59712, 59774, 1, 7192},
 {59776, 59900, 1, 7255},
 {59968, 60030, 1, 7380},
 {60032, 60066, 1, 7443},
 {60067, 60068, 1, 8284},
 {60736, 60798, 1, 8359},
 {60800, 60851, 1, 8422},
 {60852, 60852, 0, 1993},
 {60853, 60924, 1, 8474},
 {60992, 61054, 1, 8546},
 {61056, 61164, 1, 8609},
 {61167, 61176, 1, 8092},
 {61177, 61177, 0, 751},
 {61178, 61180, 1, 8005},
 {64064, 64073, 1, 8092},
 {64074, 64083, 1, 7575},
 {64084, 64084, 0, 751},
 {64085, 64087, 1, 8005},
 {64088, 64091, 2, 40},
 {64092, 64126, 1, 8359},
 {64128, 64207, 1, 8394},
 {64208, 64208, 0, 1993},
 {64209, 64252, 1, 8474},
 {64320, 64382, 1, 8518},
 {64384, 64508, 1, 8581},
 {64576, 64587, 1, 8706}
};

static fz_error *new_90ms_rksj_h(pdf_cmap **out)
{
	fz_error *error;
	pdf_cmap *cmap;
	error = pdf_newcmap(&cmap);
	if (error)
		return error;
	cmap->staticdata = 1;
	cmap->ranges = (pdf_range*)&g_cmap_90ms_rksj_h_ranges[0];
	cmap->table = (int*)&g_cmap_90ms_rksj_h_table[0];
	strcpy(cmap->cmapname, "90ms-RKSJ-H");
	strcpy(cmap->usecmapname, "");
	cmap->wmode = 0;
	cmap->ncspace = 4;
	cmap->cspace[0].n = 1;
	cmap->cspace[0].lo[0] = 0;
	cmap->cspace[0].hi[0] = 128;
	cmap->cspace[0].lo[1] = 164;
	cmap->cspace[0].hi[1] = 166;
	cmap->cspace[0].lo[2] = 82;
	cmap->cspace[0].hi[2] = 82;
	cmap->cspace[0].lo[3] = 165;
	cmap->cspace[0].hi[3] = 167;
	cmap->cspace[1].n = 2;
	cmap->cspace[1].lo[0] = 129;
	cmap->cspace[1].hi[0] = 159;
	cmap->cspace[1].lo[1] = 64;
	cmap->cspace[1].hi[1] = 252;
	cmap->cspace[1].lo[2] = 82;
	cmap->cspace[1].hi[2] = 82;
	cmap->cspace[1].lo[3] = 171;
	cmap->cspace[1].hi[3] = 173;
	cmap->cspace[2].n = 1;
	cmap->cspace[2].lo[0] = 160;
	cmap->cspace[2].hi[0] = 223;
	cmap->cspace[2].lo[1] = 176;
	cmap->cspace[2].hi[1] = 185;
	cmap->cspace[2].lo[2] = 82;
	cmap->cspace[2].hi[2] = 82;
	cmap->cspace[2].lo[3] = 177;
	cmap->cspace[2].hi[3] = 187;
	cmap->cspace[3].n = 2;
	cmap->cspace[3].lo[0] = 224;
	cmap->cspace[3].hi[0] = 252;
	cmap->cspace[3].lo[1] = 64;
	cmap->cspace[3].hi[1] = 252;
	cmap->cspace[3].lo[2] = 82;
	cmap->cspace[3].hi[2] = 82;
	cmap->cspace[3].lo[3] = 192;
	cmap->cspace[3].hi[3] = 194;
	
	cmap->rlen = 131;
	cmap->rcap = 131;
	cmap->tlen = 44;
	cmap->tcap = 44;
	*out = cmap;

	return fz_okay;
}

#else

	if (!strcmp(name, "90ms-RKSJ-H"))
		return new_90ms_rksj_h(cmapp);

#endif
#endif
